Provides the next higher integer power of two.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
The value to test. |
The next power of two higher than n. If n is already a power of two, its value is simply returned. For instance, if n is set to 128, then a value of 7 is returned ( ).